<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg" mode=""></image>
		<view class="info">
			<view @click="callPhone">联系电话：xxx-xxxx-xxxx（点击拨打）</view>
			<view>联系地址：河北省xxx市xxx区xxx</view>
		</view>
		<!-- 地图组件 -->
		<map class="map" :latitude="latitude" :longitude="longitude"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				latitude: 39.915119,
				longitude: 116.403963
			}
		},
		methods: {
			callPhone(){
				uni.makePhoneCall({
					phoneNumber: '11111111111'
				})
			}
		}
	}
</script>

<style lang="scss">
.contact{
	.img{
		width: 750rpx;
		height: 320rpx;
	}
	.info{
		padding: 10rpx 20rpx;
		font-size: 30rpx;
		view{
			line-height: 90rpx;
			border-bottom: 1px solid #eee;
		}
	}
	.map{
		width: 750rpx;
		height: 750rpx;
	}
}
</style>
